package com.ywh.train.bean;

import java.io.Serializable;

public class UserInfo implements Serializable {
    private static final long serialVersionUID = 1853783102927497794L;

    // 账号信息
    private String username;
    private String password;

    // 乘车信息
    private String from_station_telecode_name;
    private String to_station_telecode_name;
    private String train_date; // 乘车时间
    private String round_start_time_str; // 时间段范围(如: 00:00--24:00)

    private String train_code; // 车次
    private String train_no; // 车次编号
    private String seattype_num; // 总张数

    // 联系人信息
    private String cardno1; // 身份证号码
    private String name1; // 姓名
    private String mobileno1; // 电话

    private String cardno2;
    private String name2;
    private String mobileno2;

    private String cardno3;
    private String name3;
    private String mobileno3;

    private String cardno4;
    private String name4;
    private String mobileno4;

    private String cardno5;
    private String name5;
    private String mobileno5;

    private String seat = "O";
    private String seatDetailSelect = "1"; // TODO what's mean?
    private String seatDetail = "0"; // TODO what's mean?
    private String ticket = "1";
    private String cardtype = "1";
    private String id_mode = "Y";
    
    // 限制条件
    private String beginTime; // 指定时间范围
    private String endTime; // 指定时间范围
    private String train_codeMatch; // 车次匹配
    private String blackTrainCodes; // 黑名单(车次)
    private String seatTypes; // 座次匹配

    // 其他参数
    private boolean boxkDFirst; // 动车优先
    private boolean boxkHardSleepFirst; // 动车优先
    private boolean boxkIsAuto; // 自动识别验证码
    private boolean boxkEnforce; // 强行订票

	public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSeat() {
        return seat;
    }

    public void setSeat(String seat) {
        this.seat = seat;
    }

    public String getSeatDetailSelect() {// TODO
		return seatDetailSelect;
	}

	public void setSeatDetailSelect(String seatDetailSelect) {// TODO
		this.seatDetailSelect = seatDetailSelect;
	}

	public String getSeatDetail() {// TODO
		return seatDetail;
	}

	public void setSeatDetail(String seatDetail) {// TODO
		this.seatDetail = seatDetail;
	}

	public String getTicket() {
        return ticket;
    }

    public void setTicket(String ticket) {
        this.ticket = ticket;
    }

    public String getCardtype() {
        return cardtype;
    }

    public void setCardtype(String cardtype) {
        this.cardtype = cardtype;
    }

    public String getId_mode() {
        return id_mode;
    }

    public void setId_mode(String id_mode) {
        this.id_mode = id_mode;
    }

    public String getFrom_station_telecode_name() {
        return from_station_telecode_name;
    }

    public void setFrom_station_telecode_name(String from_station_telecode_name) {
        this.from_station_telecode_name = from_station_telecode_name;
    }

    public String getTo_station_telecode_name() {
        return to_station_telecode_name;
    }

    public void setTo_station_telecode_name(String to_station_telecode_name) {
        this.to_station_telecode_name = to_station_telecode_name;
    }

    public String getTrain_date() {
        return train_date;
    }

    public void setTrain_date(String train_date) {
        this.train_date = train_date;
    }

    public String getRound_start_time_str() {
        return round_start_time_str;
    }

    public void setRound_start_time_str(String round_start_time_str) {
        this.round_start_time_str = round_start_time_str;
    }

    public String getTrain_code() {
        return train_code;
    }

    public void setTrain_code(String train_code) {
        this.train_code = train_code;
    }

    public String getTrain_no() {
        return train_no;
    }

    public void setTrain_no(String train_no) {
        this.train_no = train_no;
    }

    public String getSeattype_num() {
        return seattype_num;
    }

    public void setSeattype_num(String seattype_num) {
        this.seattype_num = seattype_num;
    }

    public String getCardno1() {
        return cardno1;
    }

    public void setCardno1(String cardno1) {
        this.cardno1 = cardno1;
    }

    public String getName1() {
        return name1;
    }

    public void setName1(String name1) {
        this.name1 = name1;
    }

    public String getMobileno1() {
        return mobileno1;
    }

    public void setMobileno1(String mobileno1) {
        this.mobileno1 = mobileno1;
    }

    public String getCardno2() {
        return cardno2;
    }

    public void setCardno2(String cardno2) {
        this.cardno2 = cardno2;
    }

    public String getName2() {
        return name2;
    }

    public void setName2(String name2) {
        this.name2 = name2;
    }

    public String getMobileno2() {
        return mobileno2;
    }

    public void setMobileno2(String mobileno2) {
        this.mobileno2 = mobileno2;
    }

    public String getCardno3() {
        return cardno3;
    }

    public void setCardno3(String cardno3) {
        this.cardno3 = cardno3;
    }

    public String getName3() {
        return name3;
    }

    public void setName3(String name3) {
        this.name3 = name3;
    }

    public String getMobileno3() {
        return mobileno3;
    }

    public void setMobileno3(String mobileno3) {
        this.mobileno3 = mobileno3;
    }

    public String getCardno4() {
        return cardno4;
    }

    public void setCardno4(String cardno4) {
        this.cardno4 = cardno4;
    }

    public String getName4() {
        return name4;
    }

    public void setName4(String name4) {
        this.name4 = name4;
    }

    public String getMobileno4() {
        return mobileno4;
    }

    public void setMobileno4(String mobileno4) {
        this.mobileno4 = mobileno4;
    }

    public String getCardno5() {
        return cardno5;
    }

    public void setCardno5(String cardno5) {
        this.cardno5 = cardno5;
    }

    public String getName5() {
        return name5;
    }

    public void setName5(String name5) {
        this.name5 = name5;
    }

    public String getMobileno5() {
        return mobileno5;
    }

    public void setMobileno5(String mobileno5) {
        this.mobileno5 = mobileno5;
    }

    public boolean isBoxkDFirst() {
        return boxkDFirst;
    }

    public void setBoxkDFirst(boolean boxkDFirst) {
        this.boxkDFirst = boxkDFirst;
    }

    public boolean isBoxkHardSleepFirst() {
        return boxkHardSleepFirst;
    }

    public void setBoxkHardSleepFirst(boolean boxkHardSleepFirst) {
        this.boxkHardSleepFirst = boxkHardSleepFirst;
    }

    public boolean isBoxkIsAuto() {
        return boxkIsAuto;
    }

    public void setBoxkIsAuto(boolean boxkIsAuto) {
        this.boxkIsAuto = boxkIsAuto;
    }

    public boolean isBoxkEnforce() {
        return boxkEnforce;
    }

    public void setBoxkEnforce(boolean boxkEnforce) {
        this.boxkEnforce = boxkEnforce;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getTrainCodeMatch() {
        return train_codeMatch;
    }

    public void setTrainCodeMatch(String train_codeMatch) {
        this.train_codeMatch = train_codeMatch;
    }

    public String getBlackTrainCodes() {
        return blackTrainCodes;
    }

    public void setBlackTrainCodes(String blackTrainCodes) {
        this.blackTrainCodes = blackTrainCodes;
    }

    public String getSeatTypes() {
        return seatTypes;
    }

    public void setSeatTypes(String seatTypes) {
        this.seatTypes = seatTypes;
    }

    public String getText1() {
        StringBuilder builder = new StringBuilder();
        builder.append(seat).append(",").append(seatDetail).append(",").append(ticket).append(",").append(getSimpleText1()).append(",").append("Y");
        return builder.toString();
    }

    public String getSimpleText1() {
        StringBuilder builder = new StringBuilder();
        builder.append(name1).append(",").append(cardtype).append(",").append(cardno1).append(",").append(mobileno1);
        return builder.toString();
    }

    public String getOldSimpleText1() {
        StringBuilder builder = new StringBuilder();
        builder.append(name1).append(",").append(cardtype).append(",").append(cardno1);
        return builder.toString();
    }

    public String getText2() {
        StringBuilder builder = new StringBuilder();
        builder.append(seat).append(",").append(seatDetail).append(",").append(ticket).append(",").append(getSimpleText2()).append(",").append("Y");
        return builder.toString();
    }

    public String getSimpleText2() {
        StringBuilder builder = new StringBuilder();
        builder.append(name2).append(",").append(cardtype).append(",").append(cardno2).append(",").append(mobileno2);
        return builder.toString();
    }

    public String getOldSimpleText2() {
        StringBuilder builder = new StringBuilder();
        builder.append(name2).append(",").append(cardtype).append(",").append(cardno2);
        return builder.toString();
    }

    public String getText3() {
        StringBuilder builder = new StringBuilder();
        builder.append(seat).append(",").append(seatDetail).append(",").append(ticket).append(",").append(getSimpleText3()).append(",").append("Y");
        return builder.toString();
    }

    public String getSimpleText3() {
        StringBuilder builder = new StringBuilder();
        builder.append(name3).append(",").append(cardtype).append(",").append(cardno3).append(",").append(mobileno3);
        return builder.toString();
    }

    public String getOldSimpleText3() {
        StringBuilder builder = new StringBuilder();
        builder.append(name3).append(",").append(cardtype).append(",").append(cardno3);
        return builder.toString();
    }

    public String getText4() {
        StringBuilder builder = new StringBuilder();
        builder.append(seat).append(",").append(seatDetail).append(",").append(ticket).append(",").append(getSimpleText4()).append(",").append("Y");
        return builder.toString();
    }

    public String getSimpleText4() {
        StringBuilder builder = new StringBuilder();
        builder.append(name4).append(",").append(cardtype).append(",").append(cardno4).append(",").append(mobileno4);
        return builder.toString();
    }

    public String getOldSimpleText4() {
        StringBuilder builder = new StringBuilder();
        builder.append(name4).append(",").append(cardtype).append(",").append(cardno4);
        return builder.toString();
    }

    public String getText5() {
        StringBuilder builder = new StringBuilder();
        builder.append(seat).append(",").append(seatDetail).append(",").append(ticket).append(",").append(getSimpleText5()).append(",").append("Y");
        return builder.toString();
    }

    public String getSimpleText5() {
        StringBuilder builder = new StringBuilder();
        builder.append(name5).append(",").append(cardtype).append(",").append(cardno5).append(",").append(mobileno5);
        return builder.toString();
    }

    public String getOldSimpleText5() {
        StringBuilder builder = new StringBuilder();
        builder.append(name5).append(",").append(cardtype).append(",").append(cardno5);
        return builder.toString();
    }

    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("UserInfo [");
        if ("".equals(cardno1))
            builder.append(", cardno1=").append(cardno1).append(", name1=").append(name1).append(", mobileno1=").append(mobileno1);
        if ("".equals(cardno2))
            builder.append(", cardno2=").append(cardno2).append(", name2=").append(name2).append(", mobileno2=").append(mobileno2);
        if ("".equals(cardno3))
            builder.append(", cardno3=").append(cardno3).append(", name3=").append(name3).append(", mobileno3=").append(mobileno3);
        if ("".equals(cardno4))
            builder.append(", cardno4=").append(cardno4).append(", name4=").append(name4).append(", mobileno4=").append(mobileno4);
        if ("".equals(cardno5))
            builder.append(", cardno5=").append(cardno5).append(", name5=").append(name5).append(", mobileno5=").append(mobileno5);
        builder.append(", from_station_telecode_name=").append(from_station_telecode_name).append(", to_station_telecode_name=").append(to_station_telecode_name).append(", train_date=").append(train_date).append(", round_start_time_str=")
                .append(round_start_time_str).append(", train_code=").append(train_code).append(", seat=").append(seat).append(", seatDetail=").append(seatDetail).append(", ticket=").append(ticket)
                .append(", cardtype=").append(cardtype).append(", id_mode=").append(id_mode).append("]");
        return builder.toString();
    }

}
